<?php
class SysnavModel extends Model
{
	public function getcIds($fid){
		$result = $this->getcId($fid);
         //dump($result);
		//dump($nid);
        return $result;
	}
	
	private function getcId($fid){
		static $result = array();
        $olist = D("Sysnav")->where("fid=$fid")->findAll();
        if (is_array($olist)) {
            for ($i = 0; $i < count($olist); $i++) {
                //$olist[$i]["id"] = $sbar . $olist[$i]["ExamCateName"] ;
                array_push($result, $olist[$i]['id']);
                $this->getcId($olist[$i]["id"]);
            }
        }
        return $result;
	}





} 
?>